package com.example.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.util.List;
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Role {
    /**
     * 角色ID
     */
    @Id
    private Integer rid;

    /**
     * 角色名
     */
    private String rname;

    /**
     * 角色编码
     */
    private String rno;

    /**
     * 备注
     */
    private String comment;

    @Transient
    private List<Perms> perms;
}
